﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class CFSKConfiger : IEntityTypeConfiguration<CFSK>
    {
        public void Configure(EntityTypeBuilder<CFSK> builder)
        {
            builder.ToTable(nameof(CFSK));
            builder.HasKey(c => c.FskId);
            builder.Property(c => c.FirstKindId);
            builder.Property(c => c.FirstKindName);
            builder.Property(c => c.SecondKindId);
            builder.Property(c => c.SecondKindName);
            builder.Property(c => c.SecondSalaryId);
            builder.Property(c => c.SecondSaleId);
        }
    }
}
